#!/bin/bash - 

read -t 5 -p "Enter your name, please: " username
read -t 5 -p "Enter your email address, please: " email
read -t 5 -p "Are you sure to continue? [y/n] " input

case $input in
  [yY]*)
    echo "Your name is $username"
    echo "Your email address is $email"
    ;;
  [nN]*)
    exit
    ;;
  *)
    echo "Just enter y or n, please."
    exit
    ;;
esac